*Replication files for aggregate regression analyses

xtivreg2 d.policy l.policy ECtHRpos d.lgbtlaws l.lgbtlaws l.nstates d.nstates,  fe robust bw(2)
outreg2 using tablenew.doc, nolabel replace

xtivreg2 d.policy l.policy ECtHRpos d.lgbtlaws l.lgbtlaws l.nstates d.nstates l.gni d.gni l.east d.east,  fe robust bw(2)
outreg2 using tablenew.doc, nolabel append

xtivreg2 policy  l.policy ECtHRpos l.lgbtlaws l.nstates, fe robust bw(2)
outreg2 using tablenew.doc, nolabel append

xtivreg2 policy l.policy ECtHRpos l.lgbtlaws l.nstates l.east l.gni, fe robust bw(2)
outreg2 using tablenew.doc, nolabel append

xtpcse policy l.policy ECtHRpos l.lgbtlaws l.nstates, correlation(ar1)
outreg2 using tablenew.doc, nolabel append

xtpcse policy l.policy ECtHRpos l.lgbtlaws l.nstates l.east l.gni, correlation(ar1)
outreg2 using tablenew.doc, nolabel append
  
  
 xtreg policy  ECtHRpos l.lgbtlaws l.nstates i.year, fe robust 
outreg2 using tablenew.doc, nolabel append

*Figure four and last column of aggregate appendix

xtreg policy c.yearssince##c.yearssince l.lgbtlaws l.nstates i.year, fe robust 
margins , at(yearssince=(0(1)15))
marginsplot, ytitle(Predicted Number of States with LGBT Rights) xtitle (Years Since ECtHR Judgment)  title ("Figure 4: Effects of ECtHR Judgments over Time")  ///
	scheme(s1color)

